﻿using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WMSWebApi.Models;


namespace WMSWebApi.Interface
{
    /// <summary>
    /// 任务接口
    /// </summary>
    public interface ITask
    {
        /// <summary>
        /// 查询所有任务
        /// </summary>
        /// <returns></returns>
        IEnumerable<TasksTable> GetAll();
        /// <summary>
        /// 根据工位名称，任务类型查询
        /// </summary>
        /// <param name="name"></param>
        /// <returns></returns>
       public List<TasksTable> Get(string name,string type);
        /// <summary>
        /// 添加任务
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        int Add(TasksTable item);
        /// <summary>
        /// 删除任务
        /// </summary>
        /// <param name="id"></param>
        int Delete(int id);
        /// <summary>
        /// 修改任务
        /// </summary>
        /// <param name="id"></param>
        int Update(TasksTable item);
        //int HuMaterial(string station,string material,int num);
    }
}
